//////////////////////////
// NOTES on gigamacro setup
///////////////////////////

// threads per inch
// x threads = 5 tpi
// y threads = 5 tpi
// z threads = 12 tpi
// f threads = 12 tpi

// all motors = 200 steps

// stepper settings...
// x step = 1/2 step
// y step = 1/2 step
// z step = 1/4 step
// f step = 1/4 step

// axis = step x microstep x tpi = steps per inch
// x = 200 x 2 x 5 = 2000
// y = 200 x 2 x 5 = 2000
// z = 200 x 4 x 12 = 9600
// f = 200 x 4 x 12 = 9600

///////////////////////////

// define the parameters of our machine.
#define X_STEPS_PER_INCH 1346
#define X_STEPS_PER_MM   210
#define X_MOTOR_STEPS    200

#define Y_STEPS_PER_INCH 1346
#define Y_STEPS_PER_MM   105
#define Y_MOTOR_STEPS    200

#define Z_STEPS_PER_INCH 25400
#define Z_STEPS_PER_MM   1000
#define Z_MOTOR_STEPS    200

#define F_STEPS_PER_INCH 19200
#define F_STEPS_PER_MM   755.905512
#define F_MOTOR_STEPS    200

//our maximum feedrates...in what units?
#define FAST_XY_FEEDRATE 100.0
#define FAST_Z_FEEDRATE  100.0

// Units in curve section
#define CURVE_SECTION_INCHES 0.019685
#define CURVE_SECTION_MM 0.5

// Set to one if sensor outputs inverting (ie: 1 means open, 0 means closed)
// RepRap opto endstops are *not* inverting.
#define SENSORS_INVERTING 0

/****************************************************************************************
* digital i/o pin assignment
*
* this uses the undocumented feature of Arduino - pins 14-19 correspond to analog 0-5
****************************************************************************************/

//camera shutter and control pins
#define CAM_SHUTTER 2
#define CAM_WAKEFLASH_1 3 // wake flash 1
#define CAM_WAKEFLASH_2 4 // wake flash 2

// stepper driver pins

// Gene's pin assignment
/*
#define X_STEP_PIN 2
#define X_DIR_PIN 3
#define X_ENABLE_PIN 0

#define Y_STEP_PIN 4
#define Y_DIR_PIN 5
#define Y_ENABLE_PIN 0

#define Z_STEP_PIN 6
#define Z_DIR_PIN 7
#define Z_ENABLE_PIN 0

#define F_STEP_PIN 8
#define F_DIR_PIN 9
#define F_ENABLE_PIN 0
*/

// Rich's pin assignment
#define X_STEP_PIN 8
#define X_DIR_PIN 9
#define X_ENABLE_PIN 0

#define Y_STEP_PIN 11
#define Y_DIR_PIN 10
#define Y_ENABLE_PIN 0

#define Z_STEP_PIN 13
#define Z_DIR_PIN 12
#define Z_ENABLE_PIN 0

#define F_STEP_PIN 5
#define F_DIR_PIN 6
#define F_ENABLE_PIN 0


/*
// MakerBot pin assignment
#define X_STEP_PIN 2
#define X_DIR_PIN 3
#define X_ENABLE_PIN 0

#define Y_STEP_PIN 10
#define Y_DIR_PIN 7
#define Y_ENABLE_PIN 0

#define Z_STEP_PIN 19
#define Z_DIR_PIN 18
#define Z_ENABLE_PIN 0

#define F_STEP_PIN 8
#define F_DIR_PIN 9
#define F_ENABLE_PIN 0
*/

// limits not used right now

// Gene's pin assignment
/*
#define X_MIN_PIN 19
#define X_MAX_PIN 19
#define Y_MIN_PIN 19
#define Y_MAX_PIN 19
#define Z_MIN_PIN 19
#define Z_MAX_PIN 19
#define F_MIN_PIN 19
#define F_MAX_PIN 19
*/

// Rich's pin assignment

#define X_MIN_PIN 19
#define X_MAX_PIN 19
#define Y_MIN_PIN 19
#define Y_MAX_PIN 19
#define Z_MIN_PIN 19
#define Z_MAX_PIN 19
#define F_MIN_PIN 19
#define F_MAX_PIN 19










